package mydesign.chapters01.v3;


import mydesign.chapters01.v3.behavior.WeaponBehavior;

/**
 * 人物
 */
public  abstract class 梁山英雄 {

   WeaponBehavior weaponBehavior;


   abstract void  display();

   void fight(){
      weaponBehavior.userWeapon();
   }


   public WeaponBehavior getWeaponBehavior() {
      return weaponBehavior;
   }

   public void setWeaponBehavior(WeaponBehavior weaponBehavior) {
      this.weaponBehavior = weaponBehavior;
   }
}
